package com.tebiecloud.act.server.service;

import com.tebiecloud.act.client.model.entity.ActGoodsRef;
import com.tebiecloud.common.mybatis.base.service.IBaseService;

import java.util.Map;

/**
 * 活动关联的商品表 服务类
 * @author tebie
 * @date 2019-09-12
 */
public interface ActGoodsRefService extends IBaseService<ActGoodsRef> {

    /**
     * 更新库存
     * @param actId
     * @param goodsSpecificationId
     * @param amount
     * @return
     */
    Map<String,String> updateStockQty(long actId, long goodsSpecificationId, int amount);
}
